/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javatowerdefense;

/**
 *
 * @author Norvin Altamirano.
 */
public class Player {
    
    Player instance;
    
    private int money;
    private int lives;
    private int score;
    private int level;
    
    private Player(){
        money = 0;
        lives = 3;
        score = 0;
        level = 1;
    }
    
    public Player getInstance(){
        if (instance == null){
            instance = new Player();
        }
        return instance;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getLives() {
        return lives;
    }

    public void setLives(int lives) {
        this.lives = lives;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public int getScore() {
        return score;
    }
    
    public void setScore(int score) {
        this.score = score;
    }

}
